package com.day0929.try_catch;

public class Text2 {
    public void text() throws RuntimeException, Exception{
        System.out.println("................");
    }

    public static void main(String[] args) throws Exception{
        //调用者  2种处理方式
//        1.主动处理  try  catch
//        2.接着往上抛异常
        Text2 text2 = new Text2();
        try{
            text2.text();
        }catch (Exception e){
            throw  new RuntimeException(e);
        }
        text2.text();
    }
}
